/*	Author		: Arga
 *	Created On	: Apr 23, 2011
 *	Description	: 
 */

package team8.paacdroid.bean;

import java.io.Serializable;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class BusRide implements Serializable {
	private static final long serialVersionUID = -3367716744421769134L;
	private String routeNo;
	private String routeName;
	private String direction;
	private String quickScheduleLink;
	private String pdfScheduleLink;
	private Date boardTime;
	private String boardStopInfoLink;
	private String boardStopName;
	private Integer boardStopId;
	private Double boardStopLat;
	private Double boardStopLong;
	private Date offTime;
	private String offStopInfoLink;
	private String offStopName;
	private Integer offStopId;
	private Double offStopLat;
	private Double offStopLong;
	private Boolean isDetour;
	private String detourInfoLink;
	private String boardInstruction;
	private String offInstruction;

	public String getRouteNo() {
		return routeNo;
	}

	public void setRouteNo(String routeNo) {
		this.routeNo = routeNo;
	}

	public String getRouteName() {
		return routeName;
	}

	public void setRouteName(String routeName) {
		this.routeName = routeName;
	}

	public String getDirection() {
		return direction;
	}

	public void setDirection(String direction) {
		this.direction = direction;
	}

	public String getQuickScheduleLink() {
		return quickScheduleLink;
	}

	public void setQuickScheduleLink(String quickScheduleLink) {
		this.quickScheduleLink = quickScheduleLink;
	}

	public String getPdfScheduleLink() {
		return pdfScheduleLink;
	}

	public void setPdfScheduleLink(String pdfScheduleLink) {
		this.pdfScheduleLink = pdfScheduleLink;
	}

	public Date getBoardTime() {
		return boardTime;
	}

	public void setBoardTime(Date boardTime) {
		this.boardTime = boardTime;
	}

	public void setBoardTime(String boardTime) throws ParseException {
		DateFormat df = new SimpleDateFormat("M/d/yyyy h:mm aa");
		this.boardTime = df.parse(boardTime);
	}
	
	public String getBoardStopInfoLink() {
		return boardStopInfoLink;
	}

	public void setBoardStopInfoLink(String boardStopInfoLink) {
		this.boardStopInfoLink = boardStopInfoLink;
	}

	public String getBoardStopName() {
		return boardStopName;
	}

	public void setBoardStopName(String boardStopName) {
		this.boardStopName = boardStopName;
	}

	public Integer getBoardStopId() {
		return boardStopId;
	}

	public void setBoardStopId(Integer boardStopId) {
		this.boardStopId = boardStopId;
	}

	public void setBoardStopId(String boardStopId) {
		this.boardStopId = Integer.parseInt(boardStopId);
	}

	public Double getBoardStopLat() {
		return boardStopLat;
	}

	public void setBoardStopLat(Double boardStopLat) {
		this.boardStopLat = boardStopLat;
	}

	public void setBoardStopLat(String boardStopLat) {
		this.boardStopLat = Double.parseDouble(boardStopLat);
	}

	public Double getBoardStopLong() {
		return boardStopLong;
	}

	public void setBoardStopLong(Double boardStopLong) {
		this.boardStopLong = boardStopLong;
	}

	public void setBoardStopLong(String boardStopLong) {
		this.boardStopLong = Double.parseDouble(boardStopLong);
	}

	public Date getOffTime() {
		return offTime;
	}

	public void setOffTime(Date offTime) {
		this.offTime = offTime;
	}

	public void setOffTime(String offTime) throws ParseException {
		DateFormat df = new SimpleDateFormat("M/d/yyyy h:mm aa");
		this.offTime = df.parse(offTime);
	}

	public String getOffStopInfoLink() {
		return offStopInfoLink;
	}

	public void setOffStopInfoLink(String offStopInfoLink) {
		this.offStopInfoLink = offStopInfoLink;
	}

	public String getOffStopName() {
		return offStopName;
	}

	public void setOffStopName(String offStopName) {
		this.offStopName = offStopName;
	}

	public Integer getOffStopId() {
		return offStopId;
	}

	public void setOffStopId(Integer offStopId) {
		this.offStopId = offStopId;
	}

	public void setOffStopId(String offStopId) {
		this.offStopId = Integer.parseInt(offStopId);
	}

	public Double getOffStopLat() {
		return offStopLat;
	}

	public void setOffStopLat(Double offStopLat) {
		this.offStopLat = offStopLat;
	}

	public void setOffStopLat(String offStopLat) {
		this.offStopLat = Double.parseDouble(offStopLat);
	}

	public Double getOffStopLong() {
		return offStopLong;
	}

	public void setOffStopLong(Double offStopLong) {
		this.offStopLong = offStopLong;
	}

	public void setOffStopLong(String offStopLong) {
		this.offStopLong = Double.parseDouble(offStopLong);
	}

	public Boolean isDetour() {
		return isDetour;
	}

	public void setDetour(Boolean isDetour) {
		this.isDetour = isDetour;
	}

	public String getDetourInfoLink() {
		return detourInfoLink;
	}

	public void setDetourInfoLink(String detourInfoLink) {
		this.detourInfoLink = detourInfoLink;
	}

	public String getBoardInstruction() {
		return boardInstruction;
	}

	public void setBoardInstruction(String boardInstruction) {
		this.boardInstruction = boardInstruction;
	}

	public String getOffInstruction() {
		return offInstruction;
	}

	public void setOffInstruction(String offInstruction) {
		this.offInstruction = offInstruction;
	}
}
